import request from '@/utils/request'

//获取所有奖池
export function giveRecord() {
  return request({
    url: '/connect/prize-pool/all',
    method: 'get'
  })
}
//添加人脉奖池
//prize_pool_name	String	奖池名称，必须
export function addPrizePool(data){
  return request({
    url:'/connect/prize-pool',
    method:'post',
    data
  })
}
//编辑
export function editPrizePool(data){
  return request({
    url:'/connect/prize-pool',
    method:'put',
    data
  })
}

//删除
export function delPrizePool(data){
  return request({
    url:'/connect/prize-pool',
    method:'delete',
    data
  })
}
